-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add express endpoints for lightning invoice #5643
Conversation
afd8341
to
efca9ce
Compare
efca9ce
to
27c866f
Compare
27c866f
to
f906a5d
Compare
f906a5d
to
8d99a14
Compare
import * as t from 'io-ts'; | ||
|
||
const UpdateWalletRequest = t.intersection([ | ||
UpdateLightningWalletSignedRequest, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should contain signerTlsKey
instead of encryptedSignerTlsKey
.
handleUpdateLightningWalletCoinSpecific
should encrypt signerTlsKey
to encryptedSignerTlsKey
using wallet passphrase (similar to signerAdminMacaroon
-> encryptedSignerAdminMacaroon
)
8832a80
to
220d79e
Compare
|
||
if (params.signerTlsKey) { | ||
requestWithEncryption.encryptedSignerTlsKey = this.wallet.bitgo.encrypt({ | ||
password: deriveLightningServiceSharedSecret(coinName, userAuthXprv).toString('hex'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
password: deriveLightningServiceSharedSecret(coinName, userAuthXprv).toString('hex'), | |
password: params.passphrase, |
|
||
if (params.signerMacaroon) { | ||
requestWithEncryption.encryptedSignerMacaroon = this.wallet.bitgo.encrypt({ | ||
password: params.passphrase, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
password: params.passphrase, | |
password: deriveLightningServiceSharedSecret(coinName, userAuthXprv).toString('hex'), |
a31979f
220d79e
to
a31979f
Compare
Add - list invoices - update wallet coin specific Ticket: BTC-1836
01d89de
a31979f
to
01d89de
Compare
Adding express apis
Ticket: BTC-1836